package com.powerflasher.SampleApp {

	import flash.display.MovieClip;
	import org.flixel.*;

	public class AnimationState extends FlxState {
		[Embed(source="Inicio.swf")]
		private static var Animacion : Class;
		// private var noFrames:Number = 30;
		private var animacion : MovieClip;

		override public function create() : void {
			animacion = new Animacion();
			FlxG.stage.addChildAt(animacion, 1);
		}
        
		override public function update() : void {
			super.update();
			
			if(FlxG.mouse.pressed()){
				FlxG.stage.removeChild(animacion);
				FlxG.switchState(new Inicio());
			}
		}
	}
}